(c-remove-any-local-eval-or-mode-variables): Use delete-region
authorMartin Rudalics <rudalics@gmx.at>
Sat, 21 Apr 2007 21:58:59 +0000 (21:58 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 21 Apr 2007 21:58:59 +0000 (21:58 +0000)
instead of kill-line.

lisp/progmodes/cc-mode.el

index f5da0eecc2ec3ac5462350c646423b5746c11151..c3c17a6f3c528e12caa472693dc63e0f7d9a9331 100644 (file)
@@ -820,7 +820,7 @@ compatible with old code; callers should always specify it."
                      "$")
              nil t)
        (beginning-of-line)
-       (kill-line 1)))
+       (delete-region (point) (progn (end-of-line) (point)))))
 
     ;; Delete the first line, if we've got one, in case it contains a mode spec.
     (unless (and lv-point
@@ -828,8 +828,7 @@ compatible with old code; callers should always specify it."
                        (forward-line 0)
                        (bobp)))
       (goto-char (point-min))
-      (unless (eobp)
-       (kill-line 1)))))
+      (delete-region (point) (progn (end-of-line) (point))))))
 
 (defun c-postprocess-file-styles ()
   "Function that post processes relevant file local variables in CC Mode.